package edu.cqie.log;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * AfterLog
 *
 * @description:
 * @Author XiaoZhou
 * @Date 2023/10/17 20:12
 */
public class AfterLog implements AfterReturningAdvice {
    //returnvalue:返回值

    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("执行了"+method.getName()+"方法，返回结果为"+returnValue);
    }
}
